package com.hsgene.user.exception;

import com.hsgene.common.util.exception.ErrorCode;

/**
 * @description:
 * @projectName: hdas-geneshop-server
 * @package: com.hsgene.user.exception
 * @author: maodi
 * @createDate: 2018/10/12 11:30
 * @version: 1.0
 * Copyright: Copyright (c) 2018
 */
public enum GeneticTestingUserMallAddressErrorCode implements ErrorCode {

    RECIPIENT_SAMPLE_ADDRESS_IS_ERROR(10101, "RECIPIENT_SAMPLE_ADDRESS_IS_ERROR", "获取收货取样地址出错"),
    PARENT_ID_IS_NULL(10102, "PARENT_ID_IS_NULL", "父ID为空"),
    GET_GENETIC_TESTING_USER_MALL_ADDRESS_IS_ERROR(10103, "GET_GENETIC_TESTING_USER_MALL_ADDRESS_IS_ERROR",
            "获取收货取样地址出错"),
    INSERT_GENETIC_TESTING_USER_MALL_ADDRESS_IS_ERROR(10104, "INSERT_GENETIC_TESTING_USER_MALL_ADDRESS_IS_ERROR",
            "新增收货取样地址出错"),
    UPDATE_GENETIC_TESTING_USER_MALL_ADDRESS_IS_ERROR(10105, "UPDATE_GENETIC_TESTING_USER_MALL_ADDRESS_IS_ERROR",
            "修改收货取样地址出错"),
    DELETE_GENETIC_TESTING_USER_MALL_ADDRESS_IS_ERROR(10106, "DELETE_GENETIC_TESTING_USER_MALL_ADDRESS_IS_ERROR",
            "删除收货取样地址出错"),
    GENETIC_TESTING_USER_MALL_ADDRESS_IS_NULL(10107, "GENETIC_TESTING_USER_MALL_ADDRESS_IS_NULL",
            "收货取样地址信息为空"),
    GENETIC_TESTING_USER_MALL_ADDRESS_ADDRESS_IS_NULL(10108, "GENETIC_TESTING_USER_MALL_ADDRESS_ADDRESS_IS_NULL",
            "收货取样地址信息中地址为空"),
    GENETIC_TESTING_USER_MALL_ADDRESS_ADDRESS_IS_EXIST(10109, "GENETIC_TESTING_USER_MALL_ADDRESS_ADDRESS_IS_EXIST",
            "收货取样地址信息中地址已经存在"),
    GENETIC_TESTING_USER_MALL_ADDRESS_SIGNER_NAME_IS_NULL(10110,
            "GENETIC_TESTING_USER_MALL_ADDRESS_SIGNER_NAME_IS_NULL",
            "收货取样地址信息中收件人为空"),
    GENETIC_TESTING_USER_MALL_ADDRESS_PHONE_IS_NULL(10111,
            "GENETIC_TESTING_USER_MALL_ADDRESS_PHONE_IS_NULL",
            "收货取样地址信息中联系方式为空"),
    GENETIC_TESTING_USER_MALL_ADDRESS_ID_IS_NULL(10112,
            "GENETIC_TESTING_USER_MALL_ADDRESS_ID_IS_NULL",
            "收货取样地址信息中ID为空"),
    GENETIC_TESTING_USER_MALL_ADDRESS_PHONE_IS_NOT_PHONE(10113,
            "GENETIC_TESTING_USER_MALL_ADDRESS_PHONE_IS_NOT_PHONE",
            "收货取样地址信息中联系方式不是手机和座机"),
    GENETIC_TESTING_USER_MALL_ADDRESS_REMARKS_IS_EXCEED_200(10113,
            "GENETIC_TESTING_USER_MALL_ADDRESS_REMARKS_IS_EXCEED_200",
            "收货取样地址信息中备注超过200字符"),
    GENETIC_TESTING_USER_MALL_ADDRESS_IS_DEFAULT_IS_NULL(10114,
            "GENETIC_TESTING_USER_MALL_ADDRESS_IS_DEFAULT_IS_NULL",
            "收货取样地址信息中是否默认为空"),
    GENETIC_TESTING_USER_MALL_ADDRESS_DELETE_FLAG_IS_NULL(10115,
            "GENETIC_TESTING_USER_MALL_ADDRESS_DELETE_FLAG_IS_NULL",
            "收货取样地址信息中删除标识为空"),
    GENETIC_TESTING_USER_MALL_ADDRESS_IS_DEFAULT_IS_ERROR(10116,
            "GENETIC_TESTING_USER_MALL_ADDRESS_IS_DEFAULT_IS_ERROR",
            "收货取样地址信息中默认类型应为0或1"),
    GENETIC_TESTING_USER_MALL_ADDRESS_DELETE_FLAG_IS_ERROR(10117,
            "GENETIC_TESTING_USER_MALL_ADDRESS_DELETE_FLAG_IS_NULL",
            "收货取样地址信息中删除标识应为0或1"),
    GET_GENETIC_TESTING_USER_MALL_ADDRESS_BY_ID_IS_ERROR(10118,
            "GET_GENETIC_TESTING_USER_MALL_ADDRESS_BY_ID_IS_ERROR",
            "根据id获取收货/取样地址出错"),
    HAVE_BEEN_DELETED(10119, "HAVE_BEEN_DELETED", "该条获取收货/取样地址信息已经被删除"),
    PROVINCE_ID_IS_NULL(10120, "PROVINCE_ID_IS_NULL", "省级id为空"),
    DISTRICT_ID_IS_NULL(10121, "DISTRICT_ID_IS_NULL", "区县级id为空"),
    SELECT_REGIONS_IS_ERROR(10122, "SELECT_REGIONS_IS_ERROR", "获取大区下拉框数据源出错"),
    SELECT_PROVINCES_BY_REGION_ID_IS_ERROR(10123, "SELECT_PROVINCES_BY_REGION_ID_IS_ERROR", "根据大区id获取省份数据源出错"),
    REGION_ID_IS_NOT_NULL(10125, "REGION_ID_IS_NOT_NULL", "大区id不能为空");

    /**
     * 错误码
     */
    private final int code;

    /**
     * 错误信息
     */
    private final String message;

    /**
     * 错误描述
     */
    private final String description;

    GeneticTestingUserMallAddressErrorCode(int code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getDescription() {
        return description;
    }

}
